package com.photography.wedding.service;

import com.photography.wedding.dao.MenusMapper;
import com.photography.wedding.dao.NewsMapper;
import com.photography.wedding.pojo.Menus;
import com.photography.wedding.pojo.News;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenusService {
    @Autowired
    private MenusMapper menusMapper;

    public int insertSelective(Menus record){
        return menusMapper.insertSelective(record);
    }

    public int updateByPrimaryKeySelective(Menus record){
        return menusMapper.updateByPrimaryKeySelective(record);
    }


    public List<Menus> selectMenusAll(){
        return menusMapper.selectMenusAll();
    }

    public List<Menus> selectMenusIdAll(String id){
        return menusMapper.selectMenusIdAll(id);
    }

    public List<Menus> selectAdminMenuAll(String tpye){
        return menusMapper.selectAdminMenuAll(tpye);
    }

    public int deleteByPrimaryKey(String id){
        return menusMapper.deleteByPrimaryKey(id);
    }

    public Menus selectByPrimaryKey(String id){
        return menusMapper.selectByPrimaryKey(id);
    }

}
